/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package it.baumi.tankwars.util;

/**
 *
 * @author Michael Baumgartner
 */
public class Vektor2d {

    double x;
    double y;

    public Vektor2d(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }

    public double length() {

        return Math.sqrt(x * x + y * y);
    }
   

}
